home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-12-31 | 4.4 KB | 153 lines | [TEXT/MPS ] |
- # @(#)Makefile 8.1 (Berkeley) 6/2/93
- #
- # MPW version Matthias Neeracher <neeri@iis.ee.ethz.ch>
- #
-
- #
- # Destinations
- #
-
- LibDBCIncludes = {CIncludes}
- LibDB68KCLibraries = {CLibraries}
- LibDBPPCCLibraries = {PPCLibraries}
-
- #
-
- OBJ1= bt_close.c.o bt_conv.c.o bt_debug.c.o bt_delete.c.o bt_get.c.o bt_open.c.o ∂
- bt_overflow.c.o bt_page.c.o bt_put.c.o bt_search.c.o bt_seq.c.o bt_split.c.o ∂
- bt_stack.c.o bt_utils.c.o
- OBJ2= db.c.o
- OBJ3= hash.c.o hash_bigkey.c.o hash_buf.c.o hash_func.c.o hash_log2.c.o hash_page.c.o ∂
- hsearch.c.o ndbm.c.o
- OBJ4= mpool.c.o
- OBJ5= rec_close.c.o rec_delete.c.o rec_get.c.o rec_open.c.o rec_put.c.o rec_search.c.o ∂
- rec_seq.c.o rec_utils.c.o
- MISC=snprintf.c.o
-
- PPC_OBJ1= bt_close.c.o.PPC bt_conv.c.o.PPC bt_debug.c.o.PPC bt_delete.c.o.PPC bt_get.c.o.PPC bt_open.c.o.PPC ∂
- bt_overflow.c.o.PPC bt_page.c.o.PPC bt_put.c.o.PPC bt_search.c.o.PPC bt_seq.c.o.PPC bt_split.c.o.PPC ∂
- bt_stack.c.o.PPC bt_utils.c.o.PPC
- PPC_OBJ2= db.c.o.PPC
- PPC_OBJ3= hash.c.o.PPC hash_bigkey.c.o.PPC hash_buf.c.o.PPC hash_func.c.o.PPC hash_log2.c.o.PPC hash_page.c.o.PPC ∂
- hsearch.c.o.PPC ndbm.c.o.PPC
- PPC_OBJ4= mpool.c.o.PPC
- PPC_OBJ5= rec_close.c.o.PPC rec_delete.c.o.PPC rec_get.c.o.PPC rec_open.c.o.PPC rec_put.c.o.PPC rec_search.c.o.PPC ∂
- rec_seq.c.o.PPC rec_utils.c.o.PPC
- PPC_MISC=snprintf.c.o.PPC
-
- #
- # PowerPC Libraries…
- #
-
- PPCLibs = ∂
- "{PPCLibraries}"GUSI.xcoff ∂
- "{PPCLibraries}"InterfaceLib.xcoff ∂
- "{PPCLibraries}"StdCLib.xcoff ∂
- "{PPCLibraries}"CPlusLib.o ∂
- "{PPCLibraries}"StdCRuntime.o ∂
- "{PPCLibraries}"PPCToolLibs.o ∂
- "{PPCLibraries}"PPCCRuntime.o
-
- #
- # … and how the shared ones have to be renamed.
- #
-
- PPCLibEqu = ∂
- -l "GUSI.xcoff=GUSI#0x01508000-0x01508000" ∂
- -l InterfaceLib.xcoff=InterfaceLib ∂
- -l StdCLib.xcoff=StdCLib
-
- #
- # 68K debugging options
- #
-
- Debug68K = -sym on -mbg on
-
- #
- # PowerPC debugging options. Note that -sym on disables optimization!
- #
-
- DebugPPC = -sym on
-
- #
- # PowerPC optimization options. Note that -sym on above disables optimization!
- #
-
- PPCCOpt = -opt local
-
- #
- # Tool options
- #
-
- DBInc = -i : -i :include -i {DepDir}
- COptions = -r {DBInc} {Debug68K} -d __STDC__ -s {DepDir}
- CPlusOptions = -mf {DBInc} {Debug68K}
- PPCCExt = -d macintosh -appleext on
- PPCCOptions = -shared_lib_export on {PPCCOpt} {PPCCExt} {DBInc} {DebugPPC}
- LOptions = -sym on -mf -w
- ROptions = -i :
-
- #
- # Default Build Rules
- #
-
- : ƒ ::btree: ::db: ::hash: ::mpool: ::recno: :clib:
-
- .c.o ƒ .c
- {C} {COptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
- .c.o.PPC ƒ .c
- PPCC {PPCCOptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o.PPC
-
-
- # If you don't have memmove(3), add memmove.o to the MISC line.
- #
- # If you don't have mktemp(3) or mkstemp(3), add mktemp.o to the MISC line.
- #
- # If realloc(3) of a NULL pointer on your system isn't the same as
- # a malloc(3) call, add realloc.o to the MISC line.
- #
- # If you don't have snprintf/vsnprintf(3), add snprintf.o to the MISC line.
- # Note, this depends you your having vsprintf(3) -- if you don't, there's
- # no workaround other than changing the source code to not use the snprintf
- # calls. If you have to make that change, check to see if your vsprintf
- # returns a length or a char *; if it's the latter, set VSPRINTF_CHARSTAR
- # in the include/compat.h file.
-
- LibDB.o ƒ {OBJ1} {OBJ2} {OBJ3} {OBJ4} {OBJ5} {MISC}
- Lib -sym on -o LibDB.o {OBJ1} {OBJ2} {OBJ3} {OBJ4} {OBJ5} {MISC}
-
- LibDB.xcoff ƒ {PPC_OBJ1} {PPC_OBJ2} {PPC_OBJ3} {PPC_OBJ4} {PPC_OBJ5} {PPC_MISC}
- PPCLink -xm sharedLibrary {PPC_OBJ1} {PPC_OBJ2} {PPC_OBJ3} {PPC_OBJ4} {PPC_OBJ5} {PPC_MISC} {PPCLibs} ∂
- -export `:DBExport ≈.x` -sym on -o LibDB.xcoff
- MakeSym -i ::btree: -i ::db: -i ::hash: -i ::mpool: -i ::recno: -i :clib: -cttes LibDB.xcoff
-
- LibDB ƒƒ LibDB.xcoff
- MakePEF LibDB.xcoff -ft 'shlb' -fc 'cfrg' -o LibDB {PPCLibEqu} ∂
- -c 0x01738000 -d 0x01738000 -u 0x01738000
-
- LibDB ƒƒ DBCfrg.r
- Rez DBCfrg.r -a -o LibDB
-
- LibDB.68K ƒ LibDB.o
- LibDB.PPC ƒ LibDB
- LibDB.Both ƒ LibDB.68K LibDB.PPC
-
- installƒ
- Set OldExit {Exit}
- Set Exit 0
- Begin
- Backup -a LibDB.o -to "{LibDB68KCLibraries}"
- Backup -a ∂
- :include:db.h ∂
- :include:mpool.h ∂
- :include:ndbm.h ∂
- -to "{LibDBCIncludes}"
- Backup -a LibDB LibDB.xcoff -to "{LibDBPPCCLibraries}"
- End > InstallDB
- Set Exit {OldExit}
- InstallDB
- delete InstallDB
-
- cleanƒ
- safedel {OBJ1} {OBJ2} {OBJ3} {OBJ4} {OBJ5} {MISC} {PPC_OBJ1} {PPC_OBJ2} {PPC_OBJ3} {PPC_OBJ4} {PPC_OBJ5} {PPC_MISC}
-